package com.ywb.payment.service.impl;

import com.ywb.common.entity.*;
import com.ywb.payment.mapper.PaymentMapper;
import com.ywb.payment.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author ywb
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    PaymentMapper paymentMapper;

    @Override
    public Payment getOne(Long id) {
        return paymentMapper.getOne(id);
    }

    @Override
    public boolean save(Payment payment) {
        return paymentMapper.insert(payment) > 0;
    }
}
